import request from '@/utils/request'

// 查询供款计划列表
export function listScheme(query) {
  return request({
    url: '/scheme/scheme/list',
    method: 'get',
    params: query
  })
}

// 查询供款计划详细
export function getScheme(id) {
  return request({
    url: '/scheme/scheme/' + id,
    method: 'get'
  })
}

// 新增供款计划
export function addScheme(data) {
  return request({
    url: '/scheme/scheme',
    method: 'post',
    data: data
  })
}

// 修改供款计划
export function updateScheme(data) {
  return request({
    url: '/scheme/scheme',
    method: 'put',
    data: data
  })
}

// 删除供款计划
export function delScheme(id) {
  return request({
    url: '/scheme/scheme/' + id,
    method: 'delete'
  })
}
